@extends('home/master')
@section('title','堆糖生活家--美丽单品')
@section('style')
    <link rel="stylesheet" type="text/css" href="{{url('css/lib.8551015b.css')}}">
    <link href="{{url('css/detail.46571e9b.css')}}" rel="stylesheet" />
    <script src="{{url('js/lib.bundle.a6ecd17d.js')}}"></script>
@endsection
@section('content')
<div id="content">
    <div class="layer" id="mdata">
        <div class="htube-a" id="detailcnt">
            {{--<img class="album-header-bg ohmyblured" src="{{url('images/20170313153314_zz5ma.thumb.500_500_g.jpeg"')}}" />--}}
            <div class="album-header-bg-mask" style="height:99999px"></div>
            <div class="center">
                <div class="detailinfo" id="detailinfo" data-exp='{"none":"0"}' style="width:432px">
                    @foreach($dangoods as $ggoods)
                    <div class="detail" id="pgdetail">
                        <div id="pg-detitle" class="de-title">
                            <div class="action collection">
                                @if(empty($shou))
                                    <a class="de-collect act-o" href="{{url('home/shoudata?shou=').$shou.'&id='.$_GET['id']}}" hidefocus data-favorite='{"id":"724350238","rooter":"","owner":"815655"}' onmousedown="$.G.gaq('/_trc/Mblog/_/collect');"><i></i><em>收集 {{$danshou}}</em></a>

                                @else
                                <a class="de-collect act-o" href="{{url('home/shoudata?shou=').$shou.'&id='.$_GET['id']}}" hidefocus data-favorite='{"id":"724350238","rooter":"","owner":"815655"}' onmousedown="$.G.gaq('/_trc/Mblog/_/collect');"><i></i><em>已收集 {{$danshou}}</em></a>
                                    @endif
                            </div>
                            <div class="action collection">
                                @if(empty($zan))
                                    <a class="de-collect act-o" href="{{url('home/zandata?zan=').$zan.'&id='.$_GET['id']}}" hidefocus data-favorite='{"id":"724350238","rooter":"","owner":"815655"}' onmousedown="$.G.gaq('/_trc/Mblog/_/collect');"><i></i><em>点赞</em></a>

                                @else
                                    <a class="de-collect act-o" href="{{url('home/zandata?zan=').$zan.'&id='.$_GET['id']}}" hidefocus data-favorite='{"id":"724350238","rooter":"","owner":"815655"}' onmousedown="$.G.gaq('/_trc/Mblog/_/collect');"><i></i><em>已点赞</em></a>
                                @endif
                            </div>
                        </div>
                        <div class="de-img" style="width:432px;height:400px">
                            <a class="img-out" href="#" title=" {{$ggoods->describe}}">
                                <img alt="{{$ggoods->describe}}" id="mbpho-img" class="js-favorite-blogimg" src="{{asset('adminpublic').'/'.$ggoods->pic}}" style="width:400px ;height:400px" data-width="400" data-height="400" />
                            </a>
                            <a class="vieworg" href="https://a-ssl.duitang.com/uploads/item/201703/13/20170313152922_BjVFs.jpeg" target="_blank" title="点击查看大图" ></a>
                        </div>
                        <div class="de-desc">
                            <h1 class="js-favorite-blogtit">
                                {{$ggoods->describe}}
                            </h1>
                        </div>
                        <div class="de-address">
                            {{--<div class="link coupon-price">--}}
                                {{--<a class="l-title" href="/redirect/?to=http%3A%2F%2Fwww.duitang.com%2Fredirect%2F%3Fto%3Dhttps%253A%252F%252Fitem.taobao.com%252Fitem.htm%253Fspm%253Da230r.1.14.114.lyPZur%2526id%253D545888591803%2526ns%253D1%2526abbucket%253D10%2523detail%26app_code%3D&amp;mk=bd_p_724350238" title=" {{$ggoods->describe}}" target="_blank">--}}
                                    {{--<img class="md-favicon" src="{{url('images/20141106140440_a3ach.png')}}" width="16" height="16" alt="http://img4.duitang.com/uploads/misc/201411/06/20141106140440_a3ACH.png">--}}
                                    {{--<span>--}}
{{--红人馆3033#欧美风圆领短袖人物印花套…--}}
{{--</span>--}}
                                    {{--<i class="l-title-r"></i>--}}
                                    {{--<b>￥{{$ggoods->visitor}}</b>--}}
                                {{--</a>--}}
                            {{--</div>--}}
                        </div>
                    </div>
                    @endforeach
                    <div class="de-tag">
                            <span id="mbtagsrm">
</span>
                    </div>
                </div>
                <div class="de-num">
                    <div class="de-num-inner">
                        <a href="" title="一件内搭，造型从春凹到秋"><i></i></a>
                        </ul>
                    </div>
                </div>
                <div class="info-page-scroll-l">
                    <a class="showprev" href="" data-previd="724350340" title="上一页"><i>&nbsp;</i></a>
                </div>
                <div class="info-page-scroll-r">
                    <a class="shownext" href="" data-nextid="724349900"  title="下一页"><i>&nbsp;</i></a>
                </div>
            </div>
        </div>
        <div class="htube-b">
            <div class="htube-b-inner">
                <div class="htube-bl">
                    <a class="avatar" href="">
                        <img src="{{url('images/20120814141337_uk53x.thumb.36_36_c.jpeg')}}" width="36" height="36" />
                        <img class="avatar-v" src="{{url('images/20151221104639_zibkn_2.png')}}">
                    </a>
                    <div class="userinfo">
                        <a class="name" href="" title="郑南音">郑南音</a>
                        <i class="uptime">3月13日 15:29</i>
                        <div class="userinfo-action">
                            <span>发布到&nbsp;一件内搭，造型从春凹到秋</span>
                        </div>
                    </div>
                    <div class="allalbums">
                        <div class="minealbums">
                            <ul class="oblbums">
                                <li>
                                    <a class="obimg" href="" title="一件内搭，造型从春凹到秋">
                                        <img src="{{url('images/20170313153314_zz5ma.thumb.100_100_c.jpeg')}}" width="100" height="100" alt="一件内搭，造型从春凹到秋" />
                                        <div class="db">
                                            <span class="db-name">一件内搭，造型从春凹到秋</span>
                                            <div class="db-like">
                                                <i>72张图片</i>
                                                <b>·</b>
                                                <i>1589人收藏</i>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class="otheralbums">
                            <h4>还被收集在<span>72</span>个专辑中</h4>
                            <ul class="oblbums">
                                <li>
                                    <a class="obimg" href="" title="默认专辑">
                                        <img src="{{url('images/20170313150702_gcnrj.thumb.100_100_c.jpeg')}}" width="100" height="100" alt="默认专辑">
                                        <div class="db">
                                            <span class="db-name">默认专辑</span>
                                            <div class="db-like">
                                                <i>43张图片</i>
                                                <b>·</b>
                                                <i>1人收藏</i>
                                            </div>
                                            <span class="db-people">by 嗯，好喜欢你</span>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a class="obimg" href="" title=" 孰华予.">
                                        <img src="{{url('images/20161212164356_h5sfr.thumb.100_100_c.jpeg')}}" width="100" height="100" alt=" 孰华予.">
                                        <div class="db">
                                            <span class="db-name"> 孰华予.</span>
                                            <div class="db-like">
                                                <i>357张图片</i>
                                                <b>·</b>
                                                <i>3人收藏</i>
                                            </div>
                                            <span class="db-people">by -风情千万种-</span>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a class="obimg" href="" title="大杂烩">
                                        <img src="{{url('images/20170316234635_v3ncy.thumb.100_100_c.jpeg')}}" width="100" height="100" alt="大杂烩">
                                        <div class="db">
                                            <span class="db-name">大杂烩</span>
                                            <div class="db-like">
                                                <i>10512张图片</i>
                                                <b>·</b>
                                                <i>325人收藏</i>
                                            </div>
                                            <span class="db-people">by 染染.</span>
                                        </div>
                                    </a>
                                </li>
                            </ul>
                            <div class="readalbums"></div>
                        </div>
                    </div>
                </div>
                <div class="htube-br">
                    <div class="pgreplydetail">
                        <div class="itop"></div>
                        <div class="reply-body">
                            <a name="replytop"></a>
                            <dl class="reply-input clr" style="padding: 30px;">
                                <div class="dt-vline"></div>
                                <dd class="reply-text pr">
                                    <div class="reply-text">
                                        <form id="form-cmt-reply" action="{{url('user/ping')}}" method="post">
                                            <div class="reply-editcont clr">
                                                <label for="txa-cmt-reply">发表评论...</label>
                                                {{csrf_field()}}
                                                <input type="hidden" name="id" value="{{$_GET['id']}}">
                                                <input type="hidden" name="uid" value="{{session('user_id')}}">
                                                <textarea id="txareply" name="contents" class="txa"></textarea>
                                            </div>
                                            <div id="sub" style="display: none;">
                                                {{--<a id="subreply" class="abtn sub-cmt-reply" href="javascript:;"><u>评论</u></a>--}}
                                                <input type="submit" value="评论">
                                                {{--<a class="rrp-cancle" href="javascript:;">取消</a>--}}
                                                <input type="reset"  value="取消">
                                            </div>
                                        </form>
                                    </div>
                                </dd>
                                <dd>
                                    <div>总评论：{{isset($ping)?$ping: 0}}</div>
                                    @if($rec != null)
                                        @foreach($user as $u)
                                            <p>{{$u->username}}:</p>
                                        @endforeach
                                        @foreach($rec as $p)
                                            <div style="width:300px;font-size: 16px;font-weight: bold;display: inline-block">{{$p->content}} </div> <a
                                                    href="{{url('user/pingdel?id=').$p->id.'&sid='.$_GET['id']}}" alt="删除">X</a>
                                        @endforeach
                                    @endif
                                </dd>
                            </dl>
                            <div class="clr"></div>
                            <div class="cmt-area">
                                <div id="replycont-main" class="reply-list" data-config='{"c":0,"r":"724350238","d":"815655","t":0,"p":5,"s":0,"i":"0","n":"0"}'>
                                    <div class="pbr dn" id="js-reply-page"></div>
                                </div>
                            </div>
                            <div class="cmt-more albumshowstyle dymswitch-0">
                                <!-- <a title= "专辑评论" href="javascript:;" class="album-reply">查看全部评论、赞...</a> -->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clr"></div>
        </div>
    </div>
</div>
<script>
    $('#txareply').focus(function () {
        $('#sub').css('display','block');

    });
</script>
<script src="{{url('js/detail.ef959c75.js')}}"></script>
@endsection